﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace olierFrm.MVC
{
    public class AutoController : Controller
    {
        protected SmartPage.SmartPageData SmartPageGet;
        protected ActionPageParams.Post SmartPagePost;
        protected override void ExecuteCore()
        {
            if (base.Request.HttpMethod == "GET")
            {
                this.SmartPageGet = SmartPage.GetSmartPageData(base.RouteData);
            }
            else
            {
                if (base.Request.HttpMethod == "POST")
                {
                    this.SmartPagePost = new ActionPageParams.Post(base.RouteData);
                }
            }
            base.ExecuteCore();
        }
    }
}
